package com.dragee.modules.work.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.utils.excel.FieldDispose;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 店员
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-05-23 09:57:35
 */
@Data
@TableName("t_shop_clerk")
public class ShopClerkEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ExcelIgnore
    private Long id;
    /**
     * 商铺ID
     */
    @ExcelProperty(value = "商铺ID")
    @FieldDispose(value = "shopId")
        private String shopId;
    /**
     * 名字
     */
    @ExcelProperty(value = "名字")
    @FieldDispose(value = "name")
        private String name;
    /**
     * 联系方式
     */
    @ExcelProperty(value = "联系方式")
    @FieldDispose(value = "tel")
        private String tel;
    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号")
    @FieldDispose(value = "idCard")
        private String idCard;
    /**
     * 性别
     */
    @ExcelProperty(value = "性别")
    @FieldDispose(value = "sex")
        private String sex;
    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄")
    @FieldDispose(value = "age")
        private Integer age;
    /**
     * 住址
     */
    @ExcelProperty(value = "住址")
    @FieldDispose(value = "address")
        private String address;
    /**
     * 在职离职
     */
    @ExcelProperty(value = "在职离职")
    @FieldDispose(value = "status")
        private String status;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @FieldDispose(value = "remark")
        private String remark;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;
    /**
     * 排序字段
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long sort;

    private String points;
    }